##
## Makefile for libmyv2 in /home/noret_a//piscine
## 
## Made by christophe noret
## Login   <noret_a@epitech.net>
## 
## Started on  Mon Oct 22 09:27:04 2012 christophe noret
## Last update Thu Oct 25 16:21:47 2012 christophe noret
##

all: compil lib

NAME	=	libmy

SRC	=	*.c

OBJS	=	*.o

CC	=	cc -c

AR	=	ar rc

RM	=	rm -f

compil:
		@$(CC) $(SRC)
		@echo "Generating .o files..."

lib:
		@echo "Creating Library..."
		@$(AR) $(NAME).a $(OBJS)
		@ranlib $(NAME).a
		@echo -e "\E[33;31mDONE\E[00;00m"

clean:
		@echo "Deleting .o files..."
		@$(RM) $(OBJS)
		@echo -e "\E[33;31mDONE\E[00;00m"

fclean:
		@echo "Deleting .o files..."
		@$(RM) $(OBJS)
		@echo "Deleting library..."
		@$(RM) $(NAME).a
		@echo -e "\E[33;31mDONE\E[00;00m"

re:		fclean all